package com.yq.cp.entity.data;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yq.cp.entity.common.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 每小时电价
 * </p>
 *
 * @author zh
 * @since 2023-03-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_hour_price")
public class HourPrice extends BaseEntity {

    private static final long serialVersionUID = 1L;


    /**
     * 能源站id
     * */
    private Long energyId;
    /**
     * 尖峰平谷：1,2,3,4
     * */
    private Integer type;
    /**
     * 小时
     */
    private Integer hourNumber;

    /**
     * 单价
     */
    private BigDecimal unitPrice;

    @JsonFormat(pattern = "HH:mm", timezone = "GMT+8")
    private Date beginTime;
    @JsonFormat(pattern = "HH:mm", timezone = "GMT+8")
    private Date overTime;
    /**
     * 分类：1-结算电价 2-上网电价
     * */
    private Integer classify;

}
